﻿using KAs.Common.Attr;
using KAs.Common.Const;
using KAs.SqlSugar.Entity;
using KAs.SqlSugar.Entity.Interface;
using SqlSugar;

namespace Test.Domain;

[AutoAudit]
[SugarTable("Sys_ProOptionConfig")]
public class ProOptionConfig : AutoIncreIdEntity<int>, ICreateEntity, IUpdateEntiy, IDeleteEntity
{
    [SugarColumn(ColumnDescription = "实体类名")]
    public string ClassName { get; set; }

    [SugarColumn(ColumnDataType = ConstConfig.TEXT, ColumnDescription = "类型条件", IsJson = true)]
    public IDictionary<string, object> TypeDic { get; set; }

    [SugarColumn(ColumnDataType = ConstConfig.TEXT, ColumnDescription = "扩展字段配置", IsJson = true)]
    public IDictionary<string, string> ProOptConfig { get; set; }

    [SugarColumn(IsNullable = true)]
    public DateTime? CreateTime { get; set; }

    [SugarColumn(IsNullable = true)]
    public string CreateUid { get; set; }

    [SugarColumn(IsNullable = true)]
    public DateTime? UpdateTime { get; set; }

    [SugarColumn(IsNullable = true)]
    public string UpdateUid { get; set; }

    public bool IsDeleted { get; set; }
}
